#define _CRT_SECURE_NO_WARNINGS
////
//////#include <stdio.h>
//////
//////int mian()
//////{
//////
//////}
////
//////#include <stdio.h>
//////
//////int main()
//////{
//////    int a = 0;
//////    while (scanf("%d", &a) != EOF)
//////    {
//////        if (a % 2 == 1)
//////            printf("Odd\n");
//////        else
//////            printf("Even\n");
//////    }
//////
//////    return 0;
//////}
////
////
////#include <stdio.h>
////
////int main()
////{
////    int a = 0;
////    int b = 0;
////    int c = 0;
////    scanf("%d %d %d", &a, &b, &c);
////    if (a >= b && a >= c)
////        printf("%d", a);
////    else if (b >= a && b >= c)
////        printf("%d", b);
////    else
////        printf("%d", c);
////    return 0;
////}
////
////#include <stdio.h>
////int main() {
////    int ch = 0;
////    char s[] = "AaEeIiOoUu";
////    while (~scanf(" %c", &ch)) {
////        int i = 0;
////        for (i = 0; i < 10; i++) {
////
////            if (ch == s[i]) {
////
////                printf("Vowel\n");
////                break;
////            }
////        }
////
////
////
////        if (i == 10)
////            printf("Consonant\n");
////
////    }
////
////
////#include <stdio.h>
////
////    int main()
////    {
////        int ch = 0;
////        while ((ch = getchar()) != EOF)
////        {
////            if (isalpha(ch))
////                printf("%c is an alphabet.\n", ch);
////            else
////                printf("%c is not an alphabet.\n", ch);
////            getchar();
////        }
////        return 0;
////    }
//
//#include <ctype.h>
//#include <stdio.h>
//
//int main() {
//    char ch = 0;
//    while ((ch = getchar()) != EOF)
//    {
//        if (islower(ch))
//            printf("%c\n", toupper(ch));
//        else if (isupper(ch))
//            printf("%c\n", tolower(ch));
//        getchar();
//    }
//    return 0;
//}
//
//#include <stdio.h>
//
//int main() {
//    int t = 0;
//    while ((scanf("%d", &t) != EOF))
//    {
//        if (t > 0)
//            printf("1\n");
//        else if (t < 0)
//            printf("0\n");
//        else
//            printf("0.5\n");
//    }
//    return 0;
//}
//
//#include <stdio.h>
//
//int main() {
//    int a = 0;
//    int b = 0;
//    int c = 0;
//    while (scanf("%d %d %d", &a, &b, &c) != EOF) {
//        if (a + b > c) {
//            if (a == b && b == c && a == c) {
//                printf("Equilateral triangle!\n");
//            }
//            else if (a == c || a == b || b == c) {
//                printf("Isosceles triangle!\n");
//            }
//            else {
//                printf("Ordinary triangle!\n");
//            }
//
//        }
//        else {
//            printf("Not a triangle!\n");
//        }
//
//    }
//    return 0;
//}
//


//#include <stdio.h>
//#include <math.h>
//int main()
//{
//    int weight = 0;
//    int height = 0;
//    double BMI = 0;
//    while ((scanf("%d %d", &weight, &height)) != EOF)
//    {
//        BMI = weight / (pow(height, 2) / 100 / 100);
//        if (BMI < 18.5 && BMI > 0)
//            printf("Underweight\n");
//        else if (BMI <= 23.9)
//            printf("Normal\n");
//        else if (BMI <= 27.9)
//            printf("Overweight\n");
//        else
//            printf("Obese\n");
//        printf("BMI = %.1f\n",BMI);
//    }
//    return 0;
//}

//#include <stdio.h>
//#include <math.h>
//int main()
//{
//    int weight = 0;
//    int height = 0;
//    double BMI = 0;
//    while ((scanf("%d %d", &weight, &height)) != EOF)
//    {
//        BMI = weight / (pow(height, 2) / 100 / 100);
//        if (BMI < 18.5 && BMI > 0)
//            printf("Underweight\n");
//        else if (BMI <= 23.9)
//            printf("Normal\n");
//        else if (BMI <= 27.9)
//            printf("Overweight\n");
//        else
//            printf("Obese\n");
//        printf("BMI = %.1f\n", BMI);
//    }
//    return 0;
//}

#include <math.h>
#include <stdio.h>

int main()
{
    double a = 0;
    double b = 0;
    double c = 0;
    double tmp = 0;
    double ret = 0;
    double q = 0;
    double p = 0;
    double x1 = 0;
    double x2 = 0;
    while ((scanf("%f %f %f", &a, &b, &c)) != EOF)
    {
        tmp = (b * b) - (4 * a * c);
        q = -b / (2 * a);
        p = sqrt(tmp) / (2 * a);
        x1 = q - p;
        x2 = q + p;
        if (a == 0)
            printf("Not quadratic equation\n");
        else
        {
            if (tmp == 0)
            {
                if (x1 == 0)
                    printf("x1=x2=%.2f\n", fabs(x1));
                else
                    printf("x1=x2=%.2f\n", x1);

            }
            else if (tmp > 0)
            {
                printf("x1=%.2f;x2=%.2f\n", x1, x2);
            }
            else
            {
                printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi", q, p, q, p);
            }
        }
    }
    return 0;
}
#include <math.h>
#include <stdio.h>

int main()
{
    double a = 0;
    double b = 0;
    double c = 0;
    double tmp = 0;
    double ret = 0;
    double q = 0;
    double p = 0;
    double x1 = 0;
    double x2 = 0;
    while ((scanf("%lf %lf %lf", &a, &b, &c)) != EOF)
    {
        tmp = (b * b) - (4 * a * c);
        q = -b / (2 * a);
        p = sqrt(tmp) / (2 * a);
        double k = sqrt(-tmp) / (2 * a);
        x1 = q - p;
        x2 = q + p;
        if (a == 0)
            printf("Not quadratic equation\n");
        else
        {
            if (tmp == 0.0)
            {
                if (x1 == 0.0)
                    printf("x1=x2=%.2lf\n", fabs(x1));
                else
                    printf("x1=x2=%.2lf\n", x1);

            }
            else if (tmp > 0.0)
            {
                printf("x1=%.2lf;x2=%.2lf\n", x1, x2);
            }
            else
            {
                printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi", q, k, q, k);
            }
        }
    }
    return 0;
}
